<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
div{width:300px; background:#ff0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
</style>
</head>

<body>
<div>
无标题文档无标题文档无标题文档无标题文档无标题文档无标题文档无标题文档无标题文档无标题文档无标题文档
</div>
</body>
</html>